﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpBolt.BasicIntefaces;
using System.IO;
using SharpBolt;
using System.Security;


namespace PowerOne.GraphicUtilites
{
    public class Miscs : IMiscs
    {
        public string LoadText(string name)
        {
            return File.ReadAllText(Engine.ResourcesPrefix + name);
        }

        public double GetMilliseconds()
        {
            return (double)DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond;
        }


        public bool IsResourceExist(string name)
        {
            return File.Exists(Engine.ResourcesPrefix + name);
        }
    }
}
